package com.yuyou.tas.job.service;

import com.yuyou.tas.service.api.lesson.service.LessonClassAPI;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.yuyou.tas.job.service.Async.AsyncService;
import com.yuyou.tas.service.api.admin.service.CommJobAPI;
import com.yuyou.tas.service.api.lesson.service.LessonResourceAPI;

@Component
public class UpdateClassStatusScheduled {

	@Autowired
	private LessonClassAPI lessonClassAPI;



	private final Logger logger = LoggerFactory.getLogger(this.getClass());

	// 每隔4小时执行任务
	@Scheduled(cron="0 0 0,4,8,12,16,20 * * ? ")
    public void executeUpdateClassStatusTask() {
		lessonClassAPI.updateLessonClassStatus();
    }
}
